const sequelize = require("../db");
const { DataTypes } = require("sequelize");
const BlogTypes = sequelize.define("BlogTypes", {
    name: {
        type: DataTypes.STRING,
        allowNull: false
    },
    articleCount: {
        type: DataTypes.INTEGER,
        allowNull: false,
        defaultValue: 0
    },
    order: {
        type: DataTypes.INTEGER,
        allowNull: false
    }
}, {
    createdAt: false,
    updatedAt: false,
    paranoid: true
})

module.exports = BlogTypes;